import request from '@/utils/request'

// 查询所有我的排查任务
export function listMyScreening(query) {
  return request({
    url: '/aqsc/screening/list',
    method: 'get',
    params: query
  })
}

// 根据id查询排查任务详细
export function getMyScreening(id) {
  return request({
    url: '/aqsc/screening/' + id,
    method: 'get'
  })
}

//远程服务调用上传
export function uploadFiles(data) {
  return request({
    url: '/aqsc/screening/upload',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 修改我的任务信息
export function updateScreening(data) {
  return request({
    url: '/aqsc/screening',
    method: 'put',
    data: data
  })
}
